package cn.cvs.acl.controller;

import cn.cvs.baseservice.utils.R;
import org.springframework.web.bind.annotation.*;

@RestController
@CrossOrigin
@RequestMapping("/acl/index")
public class IndexController {

    @PostMapping("/login")
    public R login() {
        return R.ok().data("token", "admin");
    }

    @GetMapping("/info")

    public R info() {
        return R.ok().data("roles", "[admin]").data("name", "admin")
                .data("avatar", "https://zql-1.oss-cn-beijing.aliyuncs.com/009421b80a1746cfbec7417a188099bafile.png");
    }
}
